package br.com.bikes4bikers.model;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

public class UsuarioLogado extends User{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1997835005479852554L;

	private String email;
	private PerfilSistema perfilSistema;
	private String cpf;
	private byte[] avatar;

	public UsuarioLogado(String nomeUsuario, String senha,String email,PerfilSistema perfilSistema,String cpf,byte[] avatar, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(nomeUsuario, senha, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
		
		this.email = email;
		this.perfilSistema = perfilSistema;
		this.cpf = cpf;
		this.avatar = avatar;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the perfilSistema
	 */
	public PerfilSistema getPerfilSistema() {
		return perfilSistema;
	}

	/**
	 * @param perfilSistema the perfilSistema to set
	 */
	public void setPerfilSistema(PerfilSistema perfilSistema) {
		this.perfilSistema = perfilSistema;
	}

	/**
	 * @return the cpf
	 */
	public String getCpf() {
		return cpf;
	}

	/**
	 * @param cpf the cpf to set
	 */
	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	/**
	 * @return the avatar
	 */
	public byte[] getAvatar() {
		return avatar;
	}

}
